﻿<Serializable()> _
Public Class Econtrato

#Region "           Atributos                       "
    Private _idContrato As String
    Private _descContrato As String
    Private _estado As String
    Private _descEstado As String
#End Region

#Region "           Propiedades                     "
    Public Property idContrato() As String
        Get
            Return _idContrato
        End Get
        Set(ByVal value As String)
            _idContrato = value
        End Set
    End Property
    Public Property descContrato() As String
        Get
            Return _descContrato
        End Get
        Set(ByVal value As String)
            _descContrato = value
        End Set
    End Property
    Public Property estado() As String
        Get
            Return _estado
        End Get
        Set(ByVal value As String)
            _estado = value
        End Set
    End Property
    Public Property descEstado() As String
        Get
            Return _descEstado
        End Get
        Set(ByVal value As String)
            _descEstado = value
        End Set
    End Property
#End Region

#Region "           Propiedades Avanzadas           "

#End Region

#Region "           Contructores                    "
    Public Sub New()

    End Sub
    Public Sub New(ByVal idContrato As String, ByVal descContrato As String, ByVal estado As String)
        Me.idContrato = idContrato
        Me.descContrato = descContrato
        Me.estado = estado
        Me.descEstado = IIf(estado = 1, "HABILITADO", "DESHABILITADO")
    End Sub
#End Region

End Class
